<template>
    <div>
        <input type="button" value="点击按钮" v-on:click="show()"> 
        <input type="button" value="点击按钮" v-on:click="show"> 
        <input type="button" value="点击按钮" v-on:click="show($event)">
        <!-- v-on :=>@--  -->
        <input type="button" value="点击1111" @click="show()">
        <p v-for="(item,idx) in arr" :key="idx">
            {{ item }}
        </p>
    </div>
</template>

<script>
export default {
    name:'VOn',
    data(){
        return{
            arr:[1,2,3,4],
        }
    },
    methods:{
        show(){
            
            console.log('被点击了',event);
            this.arr.push(Math.random(10));
        }
    }
}
</script>